package threadpool;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @author Brook
 */
public class ScheduledThreadPoolTest {

    public static void main(String[] args) {
        ScheduledExecutorService threadExecutor = Executors.newScheduledThreadPool(10);
        threadExecutor.schedule(new Task(), 5, TimeUnit.SECONDS);


    }
}
